<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link rel="stylesheet" type="text/css" href="/misc/css/base.css"  />
<link rel="stylesheet" type="text/css" href="/misc/css/btnicon.css"  />
<link rel="stylesheet" type="text/css" href="/misc/css/reset_admin.css"  />
<link rel="stylesheet" type="text/css" href="/misc/css/adminmenu.css"  />
<link rel="stylesheet" type="text/css" href="/misc/css/newadmin.css"  />
<script type="text/javascript" src="/misc/vendors/jquery/jquery_1.2.6.js"></script>
<script type="text/javascript" src="/misc/vendors/o2js/o2js.js"></script>
<script type="text/javascript" src="/misc/vendors/o2js/o2js_build.js"></script>
<script type="text/javascript" >
var baseUrl = "<?=$themeUrl?>";
$().ready(function(){

});
var grids;
</script>
</head>
<body   style="background-color:#fcfcfc"> 
<script type="text/javascript">
$().ready(function(){  
	o2js.build('dates'); 
	o2js.build('jscalendar');
	Calendar.setup({
		inputField:'senddate',
		button:'slt_senddate',
		ifFormat:"%Y-%m-%d", 
		singleClick:true
	}); 
	$('#senddate').val(today());
});
/* 保存 */
function fnSave(){
	var form = {
		n:<?PHP if(isset($_GET['n'])) echo $_GET['n']; else echo '0' ?>,
		senddate:$('#senddate').val()
	};
	if($('#sendpi').attr('checked')){
		form['sendpi'] = '1';
	}else{
		form['sendpi'] = '0';
	}
	if($('#orderpi').attr('checked')){
		form['orderpi'] = '1';
	}else{
		form['orderpi'] = '0';
	}
	<?PHP
	if(isset($_GET['endfunc'])){
		echo 'parent.'.$_GET['endfunc'].'(form);';
	}
	?>
	fnReturn();
}
/* 返回 */
function fnReturn(){
	if(defined(parent) && defined(parent.ymPrompt)){
		parent.ymPrompt.close();
	}else{
		window.close();
	}
}
</script>
 
 
<div style="margin:10px;">
	<div class="blockdiv">
		<div class="titlediv">请选择</div>
		<table class="mytable" > 
			<tr>
				<td class="mylabel">配送日期：</td>
				<td class="myinfo" >
					<input type="text" class="textBox" style="width:75px;" id="senddate" name="senddate" value="" readonly="readonly"/>
				<input type="button" class="btnicon_calendar" id="slt_senddate" />
				</td>  
			</tr> 
		
			<tr>
				<td class="mylabel">订单包含：</td>
				<td class="myinfo" >
					<div class="margin10">
						<input type="checkbox" checked="checked" id="sendpi"   /><label for="sendpi">乐园卡订单</label>
					</div>
					<div class="margin10">
						<input type="checkbox" checked="checked" id="orderpi"   /><label for="orderpi">田园卡订单</label>
					</div>
				</td>
			</tr>  
		</table> 
	</div>
</div>
<div  class="button_div">
		<button class=" " onclick="fnSave()">确 定</button>
		<span class="gray">或</span> 
		<a href="#" onclick="fnReturn()">取 消</a>
</div> 
</body>
</html>